﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 厂商价表头DTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class PurPriceListAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public PurPriceListAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
					IsIncludeTax=false; 
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.Supplier != null) 
			{
				this.Supplier.DoSerializeKeyList(dict);
			}
	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        	        			if (this.Currency != null) 
			{
				this.Currency.DoSerializeKeyList(dict);
			}
	        	        			if (this.PurPriceLines!=null)
			{
				foreach(ufida.u9.ait.openapi.PurPriceLinesAITDTOData objdata in this.PurPriceLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
			
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public PurPriceListAITDTOData(  ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData supplier  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , System.Boolean isIncludeTax  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData currency  , System.String code  , List<ufida.u9.ait.openapi.PurPriceLinesAITDTOData> purPriceLines  )
		{
			initData();
			this.Supplier = supplier;
			this.Org = org;
			this.IsIncludeTax = isIncludeTax;
			this.Currency = currency;
			this.Code = code;
			this.PurPriceLines = purPriceLines;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 供应商
		/// 厂商价表头DTO.Misc.供应商
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_supplier ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Supplier
		{
			get	
			{	
				return m_supplier ;
			}
			set	
			{	
				m_supplier = value ;	
			}
		}
			
		

		/// <summary>
		/// 组织
		/// 厂商价表头DTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 是否含税
		/// 厂商价表头DTO.Misc.是否含税
		/// </summary>
		private System.Boolean m_isIncludeTax ;
		[DataMember(IsRequired=false)]
		public System.Boolean IsIncludeTax
		{
			get	
			{	
				return m_isIncludeTax ;
			}
			set	
			{	
				m_isIncludeTax = value ;	
			}
		}
			
		

		/// <summary>
		/// 币种
		/// 厂商价表头DTO.Misc.币种
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_currency ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Currency
		{
			get	
			{	
				return m_currency ;
			}
			set	
			{	
				m_currency = value ;	
			}
		}
			
		

		/// <summary>
		/// 单号
		/// 厂商价表头DTO.Misc.单号
		/// </summary>
		private System.String m_code ;
		[DataMember(IsRequired=false)]
		public System.String Code
		{
			get	
			{	
				return m_code ;
			}
			set	
			{	
				m_code = value ;	
			}
		}
			
		

		/// <summary>
		/// 厂商价表行
		/// 厂商价表头DTO.Misc.厂商价表行
		/// </summary>
		private List<ufida.u9.ait.openapi.PurPriceLinesAITDTOData> m_purPriceLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.PurPriceLinesAITDTOData> PurPriceLines
		{
			get	
			{	
				if (m_purPriceLines == null )
				{
					List<ufida.u9.ait.openapi.PurPriceLinesAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.PurPriceLinesAITDTOData>() ;
					m_purPriceLines = n_m_list ;
				}
				return m_purPriceLines ;
			}
			set	
			{	
				m_purPriceLines = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
												
		#endregion 
	} 	
}
